package cn.edu.tsinghua.xkk.retrieval;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import net.imdict.analysis.chinese.ChineseAnalyzer;
public class XKKChineseSegment {
	
	public static void main(String args[])
	{
		List<String> result = segment("my starts home schools love");
		Iterator it = result.iterator();
		while(it.hasNext())
		{
			System.out.println(it.next());
		}
	}
	
	public static List<String> segment(String input){
		ArrayList<String> list = null;
		try{
			list = ChineseAnalyzer.segment(input);
			return list;
		}catch(Exception e){
			e.printStackTrace();
		}
		return list;
	}
}

